package ${servicePackageName}.mapper.sys;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ${servicePackageName}.entity.sys.SysUserDepartment;

/**
 * <p>
 * 用户机构关联表 Mapper 接口
 * </p>
 *
 * @author lizihao
 * @since 2020-11-18
 */
@Mapper
public interface SysUserDepartmentMapper extends BaseMapper<SysUserDepartment> {
	/**
	 * 获取用户所在部门id集合
	 * @param userId 用户id
	 * @return
	 */
	List<Long> getUserDepatmentList(@Param("userId") Long userId);
}
